import axios from 'axios'

export const getlogin = (data) =>{
    return axios ({
        method:'POST',
        url:'/login',
        data
    })
}

export const getUserList=()=>{
    return axios({
        method:'GET',
        url:'/user/getlist'
    })
}

export const getRoleList=()=>{
    return axios({
        method:'GET',
        url:'/role/getlist'
    })
}